<%--
  Created by IntelliJ IDEA.
  User: 12100
  Date: 2023/1/9
  Time: 15:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>条件搜索</title>
</head>
<body>
<%
  /*解决request中请求参数中出现的中文乱码*/
  request.setCharacterEncoding("UTF-8");
  /*获取搜索条件*/
  String searchName = request.getParameter("search");
  /*将获取的参数储存到request作用域中*/
  request.setAttribute("searchName",searchName);
  /*将获取的搜索条件传回（转发）给index.jsp*/
  request.getRequestDispatcher("index.jsp").forward(request,response);
%>
</body>
</html>
